package com.sinog.biz;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @desc 业务服务组件 biz服务暂时未用到mongodb，排除mongo自动配置 @SpringBootApplication(exclude = MongoAutoConfiguration.class)
 * @author zy
 * @date 2019年6月20日 15点48分
 */
@Slf4j
@EnableDiscoveryClient
@EnableScheduling
@SpringBootApplication
@EnableAsync
@MapperScan("com.sinog.biz.mapper")
public class BizApplication {

    public static ConfigurableApplicationContext applicationContext;

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(BizApplication.class);
        applicationContext = application.run(args);
        log.info("========================================");
        log.info("========================================");
        log.info("========================================");
        log.info("====    Biz Service Startup ... ======");
        log.info("========================================");
        log.info("========================================");
        log.info("========================================");
    }
}